/**
 *
 *  @auth xlx_good@qq.com
 *  @date 17/4/30.
 *
 */
import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

const store = new Vuex.Store({
  state: {
    // isBack: true,
    // isLogin: true
    keyword: {}
  },
  modules: {

  },
  actions: {

  },
  mutations: {
    //是否返回
    // back(state, bool){
    //   // state.isBack = bool;
    // },
     //是否登录
    // modifyLoginStatus(state, bool){
    //   state.isLogin = bool;
    // }
    setSerachKeyWord(state, keyword){
      state.keyword = keyword;
    }
  },
  getters: {
    // getLoginStatus: state=>{
    //   return state.isLogin;
    // }
  }

});

export default store;
